WP_Defender\Component\Firewall B

Total Complexity 79
Dependencies 14
Dependents 6
Total lines 500
Lines of code 260
Logical lines of code 116
Comment lines 160
Methods 23
Properties 0

Methods 23

Method Rating Maintainability Complexity Lines of code
skip_priority_lockout_checks()
A
54 9 21
get_blocked_ip()
S
54 7 22
is_a_staff_access()
S
57 7 16
is_blocklisted_ip()
S
51 5 30
gather_ips()
S
51 5 27
maybe_show_misconfigured_ip_detection_option_notice()
S
61 6 12
is_cloudflare_request()
S
60 5 13
is_xff_notice_ready()
S
68 5 7
auto_switch_ip_detection_option()
S
59 4 15
maybe_dismiss_cf_notice()
S
66 4 9
firewall_clean_up_lockout()
S
56 2 20
is_cf_notice_ready()
S
72 3 5
is_commencing_staff_access()
S
70 3 5
update_trusted_proxy_preset_ips()
S
67 2 8
update_cron_schedule_interval()
S
70 2 6
firewall_clean_up_temporary_ip_blocklist()
S
69 2 7
firewall_clean_up_logs()
S
63 2 10
is_authenticated_staff_access()
S
78 1 3
get_lockout_record_limit()
S
79 1 3
is_switched_ip_detection_notice()
S
79 1 3
delete_slugs()
S
71 1 6
custom_http_headers()
S
71 1 7
trusted_proxy_presets()
S
73 1 5